<?php

namespace app\api\controller\app;

use app\common\controller\Api;
use think\Db;

/**
 * 应用视频接口
 */
class Video extends Api
{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    /**
     * 获取类别
     *
     */
    public function info()
    {
        $type_id = $this->request->request('type_id');
        $list = model('app\admin\model\app\video\Info')
            ->where('type_id', $type_id)
            ->select();
        $this->success('获取成功', $list);
    }
}
